package com.cscp.javastudy.designpattern.singleton.demo1;

/**
 * 饿汉式单例
 * 可能会浪费存储空间
 */
public class Hungry {

    private Hungry() {
    }

    private static final Hungry HUNGRY = new Hungry();

    public static Hungry getInstance(){
        return HUNGRY;
    }

}
